#ifndef MANAGERSERVICE_IMPL_H
#define MANAGERSERVICE_IMPL_H

#include <iostream>
#include "manager.h"
#include "managerdao_file_impl.h"
#include "managerservice.h"
#include <vector>


using namespace std;

class ManagerServicelmpl:public ManagerService
{
	ManagerDao* dao;
	vector<Manager> vec;
public:
	ManagerServicelmpl()
	{
		dao = new ManagerDaoFilelmpl;
		dao->load(vec);	
	}
	bool addManager(Manager manager);
	bool deleteManager(int id);
	vector<Manager> listManager();
	~ManagerServicelmpl()
	{
		dao->save(vec);
		delete dao;
	}
};

#endif//MANAGERSERVICE_IMPL_H
